package com.zijie.hosptal.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zijie.hosptal.mapper.LogMapper;
import com.zijie.hosptal.pojo.po.Log;
import com.zijie.hosptal.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LogServiceImpl implements LogService {

    private LogMapper logMapper;

    @Autowired
    public void setLogMapper(LogMapper logMapper) {
        this.logMapper = logMapper;
    }

    @Override
    public Page<Log> list(Page<Log> page1, Log log) {
        return logMapper.list(page1, log);
    }

    @Override
    public boolean removeById(Integer id) {
        return logMapper.removeById(id) > 0;
    }
}
